<div class="grid_9">
<?php if($this->session->flashdata('type')): ?>
	<div class="<?php echo $this->session->flashdata('type')?>"><?php echo $this->session->flashdata('msg')?></div>
<?php endif; ?>
<div class="inner-border">
<h6>Search Users</h6>
<? $formAttrib = array('id' => 'searchuser', 'class' => 'admin-form');
   $UserNameAttrib = array('name' => 'username', 'value' => '', 'id' => 'username' ,'placeholder' => 'Enter Login name/Username');
   $UserTypeAttrib = array('name' => 'usertype', 'value' => '', 'id' => 'usertype' ,'placeholder' => 'Enter User Type');
	
?>
<?=form_open('post/search_user', $formAttrib);?>
		<div class="input-block">
			<?php
				echo form_label('Login Name :', 'login name');
				echo form_input($UserNameAttrib);		
			?>
		</div>
		
		<div class="input-block">
			<?php
				echo form_label('User Type :', 'usertype');
				echo form_input($UserTypeAttrib);		
			?>
		</div>
		
		<div class="input-block">
			<input type="submit" value="search">
		</div>
		
		<tr><td></td><td><a href=""></a></td</tr>
		
	</form>	
</div>


<? if(empty($db_entries)):?>
	<div class="notice">No data to be shown</div>
<? else:?>
<div class="inner-border">
	<h6>(<?=count($db_entries);?>) entries found</h6>
		<table>
			<tr>
				<th>username</th>
				<th>usertype</th>
			</tr>
			<tbody class="tabular">
			<? foreach($db_entries as $row):?>
					<tr><td><?=$row->username;?></td>
						<td><?=$row->usertype;?></td>
			<? endforeach;?>
			</tbody>
		</table>
</div>
<? endif;?>

</div>